package aiowang.springframe.annotation;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author aiowang
 * @description:
 * @date 2021/8/13 23:40
 */
@Component("user2")
public class User2 {

    public String name;

    @Value("秦疆")
    public void setName(String name) {
        this.name = name;
    }
}